package com.syq.entity;

import java.util.ArrayList;
import java.util.List;

public class CoachGoodAtCoursetypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public CoachGoodAtCoursetypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCCtnoIsNull() {
            addCriterion("c_ctno is null");
            return (Criteria) this;
        }

        public Criteria andCCtnoIsNotNull() {
            addCriterion("c_ctno is not null");
            return (Criteria) this;
        }

        public Criteria andCCtnoEqualTo(String value) {
            addCriterion("c_ctno =", value, "cCtno");
            return (Criteria) this;
        }

        public Criteria andCCtnoNotEqualTo(String value) {
            addCriterion("c_ctno <>", value, "cCtno");
            return (Criteria) this;
        }

        public Criteria andCCtnoGreaterThan(String value) {
            addCriterion("c_ctno >", value, "cCtno");
            return (Criteria) this;
        }

        public Criteria andCCtnoGreaterThanOrEqualTo(String value) {
            addCriterion("c_ctno >=", value, "cCtno");
            return (Criteria) this;
        }

        public Criteria andCCtnoLessThan(String value) {
            addCriterion("c_ctno <", value, "cCtno");
            return (Criteria) this;
        }

        public Criteria andCCtnoLessThanOrEqualTo(String value) {
            addCriterion("c_ctno <=", value, "cCtno");
            return (Criteria) this;
        }

        public Criteria andCCtnoLike(String value) {
            addCriterion("c_ctno like", value, "cCtno");
            return (Criteria) this;
        }

        public Criteria andCCtnoNotLike(String value) {
            addCriterion("c_ctno not like", value, "cCtno");
            return (Criteria) this;
        }

        public Criteria andCCtnoIn(List<String> values) {
            addCriterion("c_ctno in", values, "cCtno");
            return (Criteria) this;
        }

        public Criteria andCCtnoNotIn(List<String> values) {
            addCriterion("c_ctno not in", values, "cCtno");
            return (Criteria) this;
        }

        public Criteria andCCtnoBetween(String value1, String value2) {
            addCriterion("c_ctno between", value1, value2, "cCtno");
            return (Criteria) this;
        }

        public Criteria andCCtnoNotBetween(String value1, String value2) {
            addCriterion("c_ctno not between", value1, value2, "cCtno");
            return (Criteria) this;
        }

        public Criteria andCtnoIsNull() {
            addCriterion("ctno is null");
            return (Criteria) this;
        }

        public Criteria andCtnoIsNotNull() {
            addCriterion("ctno is not null");
            return (Criteria) this;
        }

        public Criteria andCtnoEqualTo(String value) {
            addCriterion("ctno =", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoNotEqualTo(String value) {
            addCriterion("ctno <>", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoGreaterThan(String value) {
            addCriterion("ctno >", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoGreaterThanOrEqualTo(String value) {
            addCriterion("ctno >=", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoLessThan(String value) {
            addCriterion("ctno <", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoLessThanOrEqualTo(String value) {
            addCriterion("ctno <=", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoLike(String value) {
            addCriterion("ctno like", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoNotLike(String value) {
            addCriterion("ctno not like", value, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoIn(List<String> values) {
            addCriterion("ctno in", values, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoNotIn(List<String> values) {
            addCriterion("ctno not in", values, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoBetween(String value1, String value2) {
            addCriterion("ctno between", value1, value2, "ctno");
            return (Criteria) this;
        }

        public Criteria andCtnoNotBetween(String value1, String value2) {
            addCriterion("ctno not between", value1, value2, "ctno");
            return (Criteria) this;
        }

        public Criteria andCnoIsNull() {
            addCriterion("cno is null");
            return (Criteria) this;
        }

        public Criteria andCnoIsNotNull() {
            addCriterion("cno is not null");
            return (Criteria) this;
        }

        public Criteria andCnoEqualTo(String value) {
            addCriterion("cno =", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotEqualTo(String value) {
            addCriterion("cno <>", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoGreaterThan(String value) {
            addCriterion("cno >", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoGreaterThanOrEqualTo(String value) {
            addCriterion("cno >=", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLessThan(String value) {
            addCriterion("cno <", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLessThanOrEqualTo(String value) {
            addCriterion("cno <=", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLike(String value) {
            addCriterion("cno like", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotLike(String value) {
            addCriterion("cno not like", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoIn(List<String> values) {
            addCriterion("cno in", values, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotIn(List<String> values) {
            addCriterion("cno not in", values, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoBetween(String value1, String value2) {
            addCriterion("cno between", value1, value2, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotBetween(String value1, String value2) {
            addCriterion("cno not between", value1, value2, "cno");
            return (Criteria) this;
        }

        public Criteria andCCtnameIsNull() {
            addCriterion("c_ctName is null");
            return (Criteria) this;
        }

        public Criteria andCCtnameIsNotNull() {
            addCriterion("c_ctName is not null");
            return (Criteria) this;
        }

        public Criteria andCCtnameEqualTo(String value) {
            addCriterion("c_ctName =", value, "cCtname");
            return (Criteria) this;
        }

        public Criteria andCCtnameNotEqualTo(String value) {
            addCriterion("c_ctName <>", value, "cCtname");
            return (Criteria) this;
        }

        public Criteria andCCtnameGreaterThan(String value) {
            addCriterion("c_ctName >", value, "cCtname");
            return (Criteria) this;
        }

        public Criteria andCCtnameGreaterThanOrEqualTo(String value) {
            addCriterion("c_ctName >=", value, "cCtname");
            return (Criteria) this;
        }

        public Criteria andCCtnameLessThan(String value) {
            addCriterion("c_ctName <", value, "cCtname");
            return (Criteria) this;
        }

        public Criteria andCCtnameLessThanOrEqualTo(String value) {
            addCriterion("c_ctName <=", value, "cCtname");
            return (Criteria) this;
        }

        public Criteria andCCtnameLike(String value) {
            addCriterion("c_ctName like", value, "cCtname");
            return (Criteria) this;
        }

        public Criteria andCCtnameNotLike(String value) {
            addCriterion("c_ctName not like", value, "cCtname");
            return (Criteria) this;
        }

        public Criteria andCCtnameIn(List<String> values) {
            addCriterion("c_ctName in", values, "cCtname");
            return (Criteria) this;
        }

        public Criteria andCCtnameNotIn(List<String> values) {
            addCriterion("c_ctName not in", values, "cCtname");
            return (Criteria) this;
        }

        public Criteria andCCtnameBetween(String value1, String value2) {
            addCriterion("c_ctName between", value1, value2, "cCtname");
            return (Criteria) this;
        }

        public Criteria andCCtnameNotBetween(String value1, String value2) {
            addCriterion("c_ctName not between", value1, value2, "cCtname");
            return (Criteria) this;
        }

        public Criteria andCCtstateIsNull() {
            addCriterion("c_ctState is null");
            return (Criteria) this;
        }

        public Criteria andCCtstateIsNotNull() {
            addCriterion("c_ctState is not null");
            return (Criteria) this;
        }

        public Criteria andCCtstateEqualTo(String value) {
            addCriterion("c_ctState =", value, "cCtstate");
            return (Criteria) this;
        }

        public Criteria andCCtstateNotEqualTo(String value) {
            addCriterion("c_ctState <>", value, "cCtstate");
            return (Criteria) this;
        }

        public Criteria andCCtstateGreaterThan(String value) {
            addCriterion("c_ctState >", value, "cCtstate");
            return (Criteria) this;
        }

        public Criteria andCCtstateGreaterThanOrEqualTo(String value) {
            addCriterion("c_ctState >=", value, "cCtstate");
            return (Criteria) this;
        }

        public Criteria andCCtstateLessThan(String value) {
            addCriterion("c_ctState <", value, "cCtstate");
            return (Criteria) this;
        }

        public Criteria andCCtstateLessThanOrEqualTo(String value) {
            addCriterion("c_ctState <=", value, "cCtstate");
            return (Criteria) this;
        }

        public Criteria andCCtstateLike(String value) {
            addCriterion("c_ctState like", value, "cCtstate");
            return (Criteria) this;
        }

        public Criteria andCCtstateNotLike(String value) {
            addCriterion("c_ctState not like", value, "cCtstate");
            return (Criteria) this;
        }

        public Criteria andCCtstateIn(List<String> values) {
            addCriterion("c_ctState in", values, "cCtstate");
            return (Criteria) this;
        }

        public Criteria andCCtstateNotIn(List<String> values) {
            addCriterion("c_ctState not in", values, "cCtstate");
            return (Criteria) this;
        }

        public Criteria andCCtstateBetween(String value1, String value2) {
            addCriterion("c_ctState between", value1, value2, "cCtstate");
            return (Criteria) this;
        }

        public Criteria andCCtstateNotBetween(String value1, String value2) {
            addCriterion("c_ctState not between", value1, value2, "cCtstate");
            return (Criteria) this;
        }

        public Criteria andCCtdescIsNull() {
            addCriterion("c_ctDesc is null");
            return (Criteria) this;
        }

        public Criteria andCCtdescIsNotNull() {
            addCriterion("c_ctDesc is not null");
            return (Criteria) this;
        }

        public Criteria andCCtdescEqualTo(String value) {
            addCriterion("c_ctDesc =", value, "cCtdesc");
            return (Criteria) this;
        }

        public Criteria andCCtdescNotEqualTo(String value) {
            addCriterion("c_ctDesc <>", value, "cCtdesc");
            return (Criteria) this;
        }

        public Criteria andCCtdescGreaterThan(String value) {
            addCriterion("c_ctDesc >", value, "cCtdesc");
            return (Criteria) this;
        }

        public Criteria andCCtdescGreaterThanOrEqualTo(String value) {
            addCriterion("c_ctDesc >=", value, "cCtdesc");
            return (Criteria) this;
        }

        public Criteria andCCtdescLessThan(String value) {
            addCriterion("c_ctDesc <", value, "cCtdesc");
            return (Criteria) this;
        }

        public Criteria andCCtdescLessThanOrEqualTo(String value) {
            addCriterion("c_ctDesc <=", value, "cCtdesc");
            return (Criteria) this;
        }

        public Criteria andCCtdescLike(String value) {
            addCriterion("c_ctDesc like", value, "cCtdesc");
            return (Criteria) this;
        }

        public Criteria andCCtdescNotLike(String value) {
            addCriterion("c_ctDesc not like", value, "cCtdesc");
            return (Criteria) this;
        }

        public Criteria andCCtdescIn(List<String> values) {
            addCriterion("c_ctDesc in", values, "cCtdesc");
            return (Criteria) this;
        }

        public Criteria andCCtdescNotIn(List<String> values) {
            addCriterion("c_ctDesc not in", values, "cCtdesc");
            return (Criteria) this;
        }

        public Criteria andCCtdescBetween(String value1, String value2) {
            addCriterion("c_ctDesc between", value1, value2, "cCtdesc");
            return (Criteria) this;
        }

        public Criteria andCCtdescNotBetween(String value1, String value2) {
            addCriterion("c_ctDesc not between", value1, value2, "cCtdesc");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}